package com.rran.study.chat.friend.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author yy
 * @Type AccountDO.java
 * @Desc
 * @date 2020/8/11 12:48
 */
@Data
@TableName("friend_application")
public class FriendApplicationDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 申请人
     */
    private String source;

    /**
     * 接收人
     */
    private String target;

    /**
     * 来源
     */
    @TableField("app_from")
    private String appFrom;
    /**
     * 描述
     */
    private String description;
    /**
     * 申请状态 0 接收 1 未接收 2 拒绝
     */
    private Integer state;

    /**
     * 删除标志,{0:未删,1:已删}
     */
    @TableField("is_deleted")
    private Integer isDeleted;
    /**
     * 创建时间
     */
    @TableField("created_at")
    private Date createdAt;
    /**
     * 创建用户
     */
    @TableField("created_by")
    private Long createdBy;
    /**
     * 更新时间
     */
    @TableField("modified_at")
    private Date modifiedAt;
    /**
     * 更新用户
     */
    @TableField("modified_by")
    private Long modifiedBy;
    /**
     * 删除时间
     */
    @TableField("deleted_at")
    private Date deletedAt;
}
